import request from '@/utils/request'

// 商圈列表
export const partner = (params) => request.get('/api/user-service/partner/search', {
  params
})

// 删除
export const del = id => request.delete(`/api/user-service/partner/${id}`)

// 重置合作商密码
export const resetPwd = id => request.put(`/api/user-service/partner/resetPwd/${id}`)
// 新建
export const add = data => request.post('/api/user-service/partner', data)
// 修改
export const revise = data => request.put(`/api/user-service/partner/${data.id}`, data)
